<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html">


    <h:head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <link href="#{facesContext.externalContext.requestContextPath}/resources/images/moto.png" type="image/x-icon" rel="icon"/>
        <link href="#{facesContext.externalContext.requestContextPath}/resources/images/moto.png" type="image/x-icon" rel="shortcut icon"/>
        <link href="#{facesContext.externalContext.requestContextPath}/resources/css/layout.css" rel="stylesheet" type="text/css" />
        <link href="#{facesContext.externalContext.requestContextPath}/resources/css/cssLayout.css" rel="stylesheet" type="text/css" />
        <link href="#{facesContext.externalContext.requestContextPath}/resources/css/menu_style.css" rel="stylesheet" type="text/css" />
        <link href="#{facesContext.externalContext.requestContextPath}/resources/css/formularios.css" rel="stylesheet" type="text/css" />
        <script src="#{facesContext.externalContext.requestContextPath}/resources/js/entradas.js" type="text/javascript"></script>
        <title><h:outputText value="#{loginBean.ubicacion}"/>&nbsp;-&nbsp;BEJ - MOTOS</title>
    </h:head>

    <h:body onload="javascript:formatInputs(document.forms);">
        <style>
            .rf-msgs-warn{color: black;}
            .rf-msgs-inf{color: blue;}
            .rf-msgs-err{color: red;}
            .rf-pb-rmng{margin: 0px; height: 20px;}
        </style>
        <div id="top">
            <div><img src="#{facesContext.externalContext.requestContextPath}/resources/images/logo_star.png" height="55" width="99"/></div>
        </div>
        <div id="menu" class="menu_content" style="height:auto; margin: 0px 20px 0px 20px;">
            <ui:insert name="menu">
                <h:form>
                    <div>
                        <ul class="menu">
                            <li class="top">
                                <h:commandLink immediate="true" action="main" styleClass="top_link">
                                    <span>Inicio</span>
                                </h:commandLink>
                            </li>
                            <li class="top"><h:commandLink immediate="true" action="#{personaBean.listar}" styleClass="top_link"><span>Personas</span></h:commandLink>
                                <ul class="sub">
                                    <li><h:commandLink immediate="true" action="#{personaBean.nuevo}" value="Nuevo"/></li>
                                    <li><h:commandLink immediate="true" action="#{personaBean.listar}" value="Buscar"/></li>
                                    <li><h:commandLink immediate="true" action="#{clienteMigraBean.importar()}" value="Importar"/></li>
                                    <li><a href="#">Imprimir</a></li>
                                </ul>
                            </li>
                            <li class="top"><h:commandLink immediate="true" action="#{compraMotosBean.listar}" styleClass="top_link"><span>Compras</span></h:commandLink>
                                <ul class="sub">
                                    <li><h:commandLink immediate="true" action="#{compraMotosBean.nuevo}" value="Nuevo"/></li>
                                    <li><h:commandLink immediate="true" action="#{compraMotosBean.listar}" value="Buscar"/></li>
                                    <li><h:commandLink immediate="true" action="#{migrarTransaccionesBean.importarCompras()}" value="Importar"/></li>
                                </ul>
                            </li>
                            <li class="top"><h:commandLink immediate="true" action="#{ventaMotosBean.listar}" styleClass="top_link" accesskey="V"><span>Ventas</span></h:commandLink>
                                <ul class="sub">
                                    <li><h:commandLink immediate="true" action="#{ventaMotosBean.nuevo}" value="Nuevo"/></li>
                                    <li><h:commandLink immediate="true" action="#{ventaMotosBean.listar}" value="Buscar"/></li>
                                    <li><h:commandLink immediate="true" action="#{migrarTransaccionesBean.importarVentas()}" value="Importar"/></li>
                                    <li><h:commandLink immediate="true" action="informeVentas" value="Imprimir"/></li>
                                </ul>
                            </li>
                            <li class="top"><h:commandLink immediate="true" action="#{motoBean.listar}" styleClass="top_link"><span>Motos</span></h:commandLink>
                                <ul class="sub">
                                    <li><h:commandLink immediate="true" action="#{motoBean.nuevo}" value="Nuevo"/></li>
                                    <li><h:commandLink immediate="true" action="#{motoBean.listar}" value="Buscar"/></li>
                                    <li><h:commandLink immediate="true" action="#{motoMigraBean.importar}" value="Importar"/></li>
                                    <li><a href="#">Imprimir</a></li>
                                </ul>
                            </li>
                            <li class="top"><h:commandLink immediate="true" action="#{motostockBean.listar}" styleClass="top_link"><span>Stock</span></h:commandLink>
                                <ul class="sub">
                                    <li><h:commandLink immediate="true" action="#{motostockBean.nuevo}" value="Nuevo"/></li>
                                    <li><h:commandLink immediate="true" action="#{motostockBean.listar}" value="Buscar"/></li>
                                    <li><h:commandLink immediate="true" action="#{motostockBean.recepcionarDocumentosStock()}" value="Recepcionar Documentos"/></li>
                                    <li><h:commandLink immediate="true" action="#{motostockBean.verStockActual()}" value="Stock Actual"/></li>
                                    <li><h:commandLink immediate="true" action="#{motostockBean.asignarPrecioGrupal()}" value="Asignar Precios"/></li>
                                    <li><h:commandLink immediate="true" action="#{motostockBean.verStockActual()}" value="Imprimir"/></li>
                                </ul>
                            </li>
                            <li class="top"><h:commandLink immediate="true" action="credito" styleClass="top_link"><span>Créditos</span></h:commandLink>
                                <ul class="sub">
                                    <li><h:commandLink immediate="true" action="#{creditoBean.nuevo}" value="Nuevo"/></li>
                                    <li><h:commandLink immediate="true" action="#{creditoBean.listar}" value="Buscar"/></li>
                                    <li><h:commandLink immediate="true" action="consolidarCuenta" value="Consolidar"/></li>
                                    <li><a href="#">Imprimir</a></li>
                                </ul>
                            </li>
                            <li class="top"><h:commandLink immediate="true" action="#{planBean.listar}" styleClass="top_link"><span>Planes</span></h:commandLink>
                                <ul class="sub">
                                    <li><h:commandLink immediate="true" action="#{planBean.nuevo}" value="Nuevo"/></li>
                                    <li><h:commandLink immediate="true" action="#{planBean.listar}" value="Buscar"/></li>
                                    <li><h:commandLink immediate="true" action="#{asignarPlanBean.consultarPlan()}" value="Consultar"/></li>
                                    <li><a href="#">Imprimir</a></li>
                                </ul>
                            </li>
                            <li class="top"><h:commandLink immediate="true" action="pago" styleClass="top_link"><span>Pagos</span></h:commandLink>
                                <ul class="sub">
                                    <li><h:commandLink immediate="true" action="#{pagoBean.nuevo}" value="Nuevo"/></li>
                                    <li><h:commandLink immediate="true" action="#{pagoBean.listar}" value="Buscar"/></li>
                                    <li><h:commandLink immediate="true" action="vencimientoCuotas" value="Vencimientos"/></li>
                                    <li><h:commandLink immediate="true" action="grillaCreditos" value="Grilla"/></li>
                                    <li><h:commandLink immediate="true" action="cobrarCredito" value="Cobrar"/></li>
                                    <li><h:commandLink immediate="true" action="cuotasCobradas" value="pagos Relizados en fecha"/></li>
                                    <li><a href="#">Imprimir</a></li>
                                </ul>
                            </li>
                            <li class="top"><h:commandLink immediate="true" action="pagare" styleClass="top_link"><span>Pagare</span></h:commandLink>
                                <ul class="sub">
                                    <li><h:commandLink immediate="true" action="#{pagareBean.nuevo()}" value="Nuevo"/></li>
                                    <li><h:commandLink immediate="true" action="#{pagareBean.listar}" value="Buscar"/></li>
                                    <li><h:commandLink immediate="true" action="vencimientoCuotas" value="Vencimientos"/></li>
                                    <li><h:commandLink immediate="true" action="grillaCreditos" value="Grilla"/></li>
                                    <li><h:commandLink immediate="true" action="cobrarCredito" value="Cobrar"/></li>
                                    <li><h:commandLink immediate="true" action="cuotasCobradas" value="pagos Relizados en fecha"/></li>
                                    <li><a href="#">Imprimir</a></li>
                                </ul>
                            </li>
                            <li class="top"><a href="#" class="top_link"><span>Datos Básicos</span></a>
                                <ul class="sub">
                                    <li><h:commandLink immediate="true" action="#{categoriaBean.listar}" value="Categoria"/></li>
                                    <li><h:commandLink immediate="true" action="#{ubicacionBean.listar}" value="Ubicacion"/></li>
                                    <li><a href="./../../secure/app/abm/editarCategoria.jsf">Nueva</a></li>
                                    <li><a href="#">Buscar</a></li>
                                </ul>
                            </li>
                            <li class="top"><h:commandLink immediate="true" action="#{loginBean.logout()}" styleClass="top_link"><span>Salir</span></h:commandLink></li>
                        </ul>
                    </div>
                </h:form>
            </ui:insert>
        </div>
        <div id="content" class="center_content">
            <ui:insert name="content">
            </ui:insert>
        </div>
        <div id="bottom" style="height: 20px;">
            Version 0.9.8 Fecha 18/07/2012. Base de Datos al 16/07/2012 - 07:05:00
            <ui:insert name="bottom"></ui:insert>
        </div>

    </h:body>

</html>
